package com.service.Impl;

import com.dao.UInfoReadDao;
import com.service.UInfoReadService;

public class UInfoReadServiceImpl implements UInfoReadService {

    private UInfoReadDao uInfoReadDao;

    public UInfoReadServiceImpl(){}
    public UInfoReadServiceImpl(UInfoReadDao uInfoReadDao) {
        this.uInfoReadDao = uInfoReadDao;
    }

    @Override
    public int selectCountByUser_idAndInfo_id(int user_id, int info_id) {
        return uInfoReadDao.selectCountByUser_idAndInfo_id(user_id,info_id);
    }

    @Override
    public void insertUInfoRead(int user_id, int info_id) {
        uInfoReadDao.insertUInfoRead(user_id,info_id);
    }

    public UInfoReadDao getuInfoReadDao() {
        return uInfoReadDao;
    }

    public void setuInfoReadDao(UInfoReadDao uInfoReadDao) {
        this.uInfoReadDao = uInfoReadDao;
    }
}
